package com.thiswhyme.sentinel.server2.feign.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @description: 自定义UserFeign2ServiceFallbackFactory
 * @author: thiswhyme
 * @date: 2021/3/4
 */
@Component
public class UserFeign2ServiceFallbackFactory implements FallbackFactory<UserFeign2FallbackService> {

    @Override
    public UserFeign2FallbackService create(Throwable cause) {
        return new UserFeign2FallbackService(cause);
    }
}
